ct_monitor: Use HTTP endpoint instead of pRPC for acme-info#421
Merged
Conversation
The gateway exposes /acme-info as an HTTP endpoint, but ct_monitor was using pRPC which expects Tproxy.* method names due to the gateway's `trim: "Tproxy."` configuration. This caused 405 Method Not Allowed errors. Switch to using the HTTP /acme-info endpoint directly, which returns JSON with hex-encoded public keys. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Remove dangerous `danger_accept_invalid_certs(true)` - gateway uses valid certs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Collaborator
|
Appended quote verification. try with: cargo run --release -p ct_monitor -- --gateway dstack-pha-prod9.phala.network --verifier-url https://c1fe8e00c02a6a382ff0e8e7f5ab2e6433508e6d-8080.tdxlab.dstack.org:12004/ |
kvinwang
added a commit
that referenced
this pull request
Jan 19, 2026
ct_monitor: Use HTTP endpoint instead of pRPC for acme-info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/acme-infoendpoint instead of pRPC/acme-infoas HTTP, but ct_monitor was calling pRPC which caused 405 errorstrim: "Tproxy."so it expectsTproxy.*method namesdstack-gateway-rpcandra-rpcdependenciesTest plan
cargo build --release -p ct_monitor./target/release/ct_monitor --gateway-uri https://gateway.dstack-pha-prod7.phala.network --domain dstack-pha-prod7.phala.network🤖 Generated with Claude Code